//
//  DGUser.m
//  Free
//
//  Created by yaoqi yaoqi on 2018/5/10.
//  Copyright © 2018年 张炜健. All rights reserved.
//

#import "DGUser.h"

@implementation DGUser

+ (void)setObject:(id)value forKey:(NSString *)KeyName{
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:KeyName];
    [[NSUserDefaults standardUserDefaults] synchronize];
    
}

+ (id)objectForKey:(NSString *)KeyName
{
    return [[NSUserDefaults standardUserDefaults] objectForKey:KeyName];
}

+(void)setValue:(id)value forKey:(NSString *)KeyName
{
    [[NSUserDefaults standardUserDefaults] setValue:value forKey:KeyName];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+(id)valueForKey:(NSString *)KeyName
{
    return [[NSUserDefaults standardUserDefaults] objectForKey:KeyName];
}

@end
